package java_0206;

import java.util.HashSet;
import java.util.Set;

public class SetCode {
    public static void main(String[] args) {
        int[] data={1,2,2,3,3,3,4,5,6,6};
        Set<Integer> set=new HashSet<>();
        for (int i:data) {
            set.add(i);
        }
        System.out.println(set);
    }
}
